<html>
<head>
    <title>文件上传实例</title>
</head>
<body>
<form method="post" action="./login.php?act=act_register" enctype="multipart/form-data">
    <table border=0 cellspacing=0 cellpadding=0 align=center width="100%">
        <tr>
            <td width=55 height=20 align="center"> </td>
            <td height="16">

                <table width="48%" height="93" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td>标题：</td>
                        <td>username<input name="user_name" type="text" >
                            <input type="password" name="password">
                            <input name="sex" type="text">
                            <input name="birth" type="date">
                            <input type="text" name="address">

                            <input type="text" name="phone">
                        </td>
                    </tr>
                    <tr>
                        <td>文件： </td>
                        <td><label>
                            <input name="user_pic" type="file" value="浏览" >
                            <input type="hidden" name="MAX_FILE_SIZE" value="2000000">
                        </label></td>
                    </tr>
                    <tr>
                        <td> </td>
                        <td><input type="submit" value="上 传" name="upload"></td>
                    </tr>
                </table></td>
        </tr>
    </table>
</form>

</body>
</html>